<template>
	<view>
		<view class="list-item"  v-for="(item, index) in list" :key="index">
			<text class="title">{{item.createOrderTime}}</text>
			<text class="title">{{item.prize}}</text>
		</view>
	</view>
</template>

<script>
	import {
		winningRecordAll
		} from '../../common/api.js'
	export default {
		data() {
			return {
				list : []
			}
		},
		onLoad() {
			this.getWinningRecordAll();
		},
		methods: {
			getWinningRecordAll() {
				winningRecordAll({
				memberNo : this.$store.state.user.userInfo.customerId,
				pageNo : 1,
				pageSize : 100
			}).then(res => {
					this.list = res;   
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.list-item {
		padding: 20upx;
	    background-color: #FFFFFF;
		margin-top: 10upx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin: 20upx;
		border-radius: 16upx;
	}
	.title {
		font-size: 26upx;
		color: #333333;
	}
</style>
